import React,{Component} from 'react';
import './cardCompany.scss';
import {
  Link
} from 'react-router-dom';
export default class cardCompany extends Component{
	constructor (props) {
		super(props)
		this.state={
		}
	}
	componentDidMount () {
	}
	render(){
		return(
			<div className="cardCompany">
				<div className="company_top">
					<div>
						<p>{this.props.shopDetail.shop_name}</p>
						<p>
							<span >经营范围：</span>
							<span className="scope">{this.props.shopDetail.business_sphere}</span>
						</p>
						<span>所在地区：{this.props.shopDetail.shop_address}</span>
					</div>
					<div>
						
						{
							this.props.shopDetail.shop_logo.length === 0 || this.props.shopDetail.shop_logo === ' ' ?
							<img src="../../../images/default/200+60默认图.jpg"/>
							: <img src={this.props.shopDetail.shop_logo}/>
						}
						<div>
							<span className="one"></span>
							<span className="two"></span>
							<span className="three"></span>
							<span className="four"></span>
						</div>
					</div>
				</div>
				<div className="company_bottom">
					<div><Link to={
						{
							pathname: '/company',
							state: {shop_id: this.props.shopDetail.shop_id}
						}
					}>
						<p>进店逛逛</p>
					</Link></div>
					<div>收藏店铺</div>
				</div>
			</div>
		)
	}
}